﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using webtracuudiem.Truyxuatdulieu;
using System.Data;


namespace webtracuudiem
{
    public partial class Site : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void TextBox2_TextChanged(object sender, EventArgs e)
        {

        }

        protected void btnSearch_Click(object sender, EventArgs e)
        {
            Response.Redirect("https://www.google.com.vn/");
        }

        //protected void btnLogin_Click(object sender, EventArgs e)
        //{
        //    string username = txtUserName.Text;
        //    string password = txtPassword.Text;
        //    string sqlSelect = "SELECT * FROM NguoiDung a, QuyenNguoiDung b, Quyen c WHERE [Username]=@TenDangNhap";
        //    //string[] arrTenThamSo =new string[]{"@Username"};
        //    //object[] arrGiaTriThamSo = new object[]{username};
        //    //DataTable tblKetQua = TienIchSQL.ChayLenhSelectDuLieu(sqlSelect
        //    //                                                        , arrTenThamSo
        //    //                                                        , arrGiaTriThamSo);
        //    DataTable tblKetQua = TienIchSql.ChayLenhSelectDuLieu(sqlSelect, "@TenDangNhap", username);
        //   // if (tblKetQua.Rows.Count > 0)
        //        //args.IsValid = false;
                
        //   // else
        //        //args.IsValid = true;
        //}

     }
}